package com.lanyun.aicorrectassistant.convert;

import com.lanyun.aicorrectassistant.basic.entity.UserApiKey;
import com.lanyun.aicorrectassistant.controller.admin.userApiKey.vo.UserApiKeyRequestPageVO;
import com.lanyun.aicorrectassistant.controller.admin.userApiKey.vo.UserApiKeyRequestVO;
import com.lanyun.aicorrectassistant.controller.admin.userApiKey.vo.UserApiKeyResponseVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户API密钥存储表转换器
 * @author Jqchan
 * @version 1.0
 * @date 2025-05-29 23:26:39
 */
@Mapper
public interface UserApiKeyConvert {

    UserApiKeyConvert INSTANCE = Mappers.getMapper(UserApiKeyConvert.class);

    UserApiKey convert(UserApiKeyResponseVO responseVO);

    UserApiKey convert(UserApiKeyRequestVO requestVO);

    UserApiKey convert(UserApiKeyRequestPageVO requestPageVO);

    UserApiKeyResponseVO convert(UserApiKey entity);

    List<UserApiKeyResponseVO> convertEntityToRespList(List<UserApiKey> entities);
}
